/*
 * XML Type:  CreditCardStatementEndRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.CreditCardStatementEndRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML CreditCardStatementEndRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class CreditCardStatementEndRequestImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.CreditCardStatementEndRequest
{
    
    public CreditCardStatementEndRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CCACCTFROM$0 = 
        new javax.xml.namespace.QName("", "CCACCTFROM");
    private static final javax.xml.namespace.QName DTSTART$2 = 
        new javax.xml.namespace.QName("", "DTSTART");
    private static final javax.xml.namespace.QName DTEND$4 = 
        new javax.xml.namespace.QName("", "DTEND");
    
    
    /**
     * Gets the "CCACCTFROM" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount getCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTFROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "CCACCTFROM" element
     */
    public void setCCACCTFROM(net.ofx.types.x2003.x04.CreditCardAccount ccacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().find_element_user(CCACCTFROM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTFROM$0);
            }
            target.set(ccacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "CCACCTFROM" element
     */
    public net.ofx.types.x2003.x04.CreditCardAccount addNewCCACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CreditCardAccount target = null;
            target = (net.ofx.types.x2003.x04.CreditCardAccount)get_store().add_element_user(CCACCTFROM$0);
            return target;
        }
    }
    
    /**
     * Gets the "DTSTART" element
     */
    public java.lang.String getDTSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTSTART$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTSTART" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTSTART$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTSTART" element
     */
    public boolean isSetDTSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTSTART$2) != 0;
        }
    }
    
    /**
     * Sets the "DTSTART" element
     */
    public void setDTSTART(java.lang.String dtstart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTSTART$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTSTART$2);
            }
            target.setStringValue(dtstart);
        }
    }
    
    /**
     * Sets (as xml) the "DTSTART" element
     */
    public void xsetDTSTART(net.ofx.types.x2003.x04.DateTimeType dtstart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTSTART$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTSTART$2);
            }
            target.set(dtstart);
        }
    }
    
    /**
     * Unsets the "DTSTART" element
     */
    public void unsetDTSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTSTART$2, 0);
        }
    }
    
    /**
     * Gets the "DTEND" element
     */
    public java.lang.String getDTEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEND$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTEND" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEND$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTEND" element
     */
    public boolean isSetDTEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTEND$4) != 0;
        }
    }
    
    /**
     * Sets the "DTEND" element
     */
    public void setDTEND(java.lang.String dtend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEND$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTEND$4);
            }
            target.setStringValue(dtend);
        }
    }
    
    /**
     * Sets (as xml) the "DTEND" element
     */
    public void xsetDTEND(net.ofx.types.x2003.x04.DateTimeType dtend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEND$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTEND$4);
            }
            target.set(dtend);
        }
    }
    
    /**
     * Unsets the "DTEND" element
     */
    public void unsetDTEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTEND$4, 0);
        }
    }
}
